﻿using Avalonia;
using Avalonia.Controls;
using Avalonia.Markup.Xaml;
using LearnTodo.Models;

namespace LearnTodo.Views;

public partial class TodoPage : UserControl
{
    public TodoPage(TodoModel model)
    {
        InitializeComponent();
        NameBlock.Text = model.Name;
        Picker.SelectedDate = model.End;
        Block.Text = model.Description;
    }
}